//
//  WowSwitchContextBuilder.m
//  PersonalOCTest
//
//  Created by zlf on 2025/8/20.
//

#import "WowSwitchContextBuilder.h"

@implementation WowSwitchContextBuilder{
    WowSwitchContext *_context;
}

+ (instancetype)builder {
    return [[self alloc] init];
}

- (instancetype)init {
    if (self = [super init]) {
        _context = [[WowSwitchContext alloc] init];
    }
    return self;
}

- (instancetype)sender:(UISwitch *)sender {
    _context.sender = sender;
    return self;
}

- (instancetype)manager:(WowNotifiSetToDeviceManager *)manager {
    _context.manager = manager;
    return self;
}

- (instancetype)infoModel:(WowAllAppSetInfoModel *)infoModel {
    _context.infoModel = infoModel;
    return self;
}

- (instancetype)tableViewModel:(WowAllAppSetModel *)tableViewModel {
    _context.tableViewModel = tableViewModel;
    return self;
}

- (instancetype)row:(NSInteger)row {
    _context.row = row;
    return self;
}

- (instancetype)viewController:(UIViewController *)viewController {
    _context.viewController = viewController;
    return self;
}

- (instancetype)reloadHandler:(void(^)(void))reloadHandler {
    _context.reloadHandler = reloadHandler;
    return self;
}

- (WowSwitchContext *)build {
    return _context;
}

@end
